package cn.caixiong.org.domain;

import cn.caixiong.basic.domain.BaseDomain;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;
@Data //生成get  set  hashcode equals toString方法
@AllArgsConstructor// 全参数构造
@NoArgsConstructor // 无参数构造
@Table(name = "t_shop") //指向表名
@ApiModel(description = "对象类")
public class Shop extends BaseDomain {
   //店长
   @Transient
    private Employee admin;
   //姓名
    private String name;
    //电话
    private String tel;
    //注册时间
    private Date registerTime = new Date();
    //0：待审核 1. 已审核待激活 2.已激活可以使用了 3.驳回
    private Integer state = 0;
    //地址
    private String address;
    //招牌
    private String logo;
    //店长id
    private Long adminId;
}
